<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:template name="get_full_date">
		<xsl:param name="datetime"/>
		<xsl:variable name="day" select="substring($datetime, 9, 2)"/>
		<xsl:variable name="month" select="substring($datetime, 6, 2)"/>
		<xsl:variable name="year" select="substring($datetime, 1, 4)"/>
		<xsl:choose>
			<xsl:when test="substring($day, 1, 1) = '0'">
				<xsl:value-of select="substring($day, 2, 1)"/>
			</xsl:when>
			<xsl:otherwise>
				<xsl:value-of select="$day"/>
			</xsl:otherwise>
		</xsl:choose>
		<xsl:text> </xsl:text>
		<xsl:call-template name="get_month_name">
			<xsl:with-param name="month_number" select="$month"/>
			<xsl:with-param name="type" select="'with_day'"/>
		</xsl:call-template>
		<xsl:text> </xsl:text>
		<xsl:value-of select="$year"/>
	</xsl:template>
	<xsl:template name="get_full_datetime">
		<xsl:param name="datetime"/>
		<xsl:variable name="day" select="substring($datetime, 9, 2)"/>
		<xsl:variable name="month" select="substring($datetime, 6, 2)"/>
		<xsl:variable name="year" select="substring($datetime, 1, 4)"/>
		<xsl:variable name="hours" select="substring($datetime, 12, 2)"/>
		<xsl:variable name="minutes" select="substring($datetime, 15, 2)"/>
		<xsl:call-template name="get_full_date">
			<xsl:with-param name="datetime" select="$datetime"/>
		</xsl:call-template>
		<xsl:text> в </xsl:text>
		<xsl:if test="string-length($hours) = 1">0</xsl:if>
		<xsl:value-of select="$hours"/>
		<xsl:text>:</xsl:text>
		<xsl:if test="string-length($minutes) = 1">0</xsl:if>
		<xsl:value-of select="$minutes"/>
	</xsl:template>
</xsl:stylesheet>
